package com.study.chain.general;

public class ConcreteHandlerB extends Handler {
    @Override
    protected void handlerRequest(String handlerStr) {
        if("B".equals(handlerStr)){
            System.out.println("我来处理请求B");
            return;
        }
        System.out.println("不是B请求，放行");
        if(this.nextHandler!=null){
            this.nextHandler.handlerRequest(handlerStr);
        }
    }
}
